#include <QtCore/QCoreApplication>
#include "trainer.h"
#include <QDebug>
#include "bot.h"
#include "httplistener.h"
#include "myrequesthandler.h"
#include "util.h"
#include <QDateTime>

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);

   
	/*Bot *bot = new Bot("xiao ming");
	bot->trainer("startup.xml");*/
	

	QSettings* listenerSettings = new QSettings("http-conf.ini", QSettings::IniFormat, &a);
	listenerSettings->beginGroup("listener");

	new HttpListener(listenerSettings, new MyRequestHandler, &a);
	

	return a.exec();
}
